package com.itcat.service.impl;


import com.itcat.api.mysql.CmsPrefrenceAreaApi;
import com.itcat.mysql.pojo.CmsPrefrenceArea;
import com.itcat.service.CmsPrefrenceAreaService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 小心触碰的电脑
* @description 针对表【cms_prefrence_area(优选专区)】的数据库操作Service实现
* @createDate 2022-04-03 14:25:43
*/
@Service
public class CmsPrefrenceAreaServiceImpl implements CmsPrefrenceAreaService {

    @DubboReference
    private CmsPrefrenceAreaApi cmsPrefrenceAreaApi;

    /**
     * 获取所有商品优选
     * @return
     */
    @Override
    public List<CmsPrefrenceArea> listAll() {
        List<CmsPrefrenceArea> list = cmsPrefrenceAreaApi.listAll();
        return list;
    }
}
